import request from '@/utils/request'
import { contractApiUrl } from '@/api/config'
const api = contractApiUrl + '/general-contract'

// 总包合同—合同变更

// 新增
export function create(data) {
  return request.post(`${api}/contractChange`, data)
}
// 编辑
export function edit(data) {
  return request.post(`${api}/editContractChange`, data)
}

// /general-contract/editContractChange

// 详情

export function detail(params) {
  return request({
    url: `${api}/findContractChange`,
    method: 'get',
    params
  })
}

// 枚举值
export function getLabels(data) {
  return request.post(`${contractApiUrl}/contract/typeslabel`,data)
}